<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Add News</title>
</head>
<body>
<form action="@{Newss.AddNews()}" method="get">
<p><b>Title : </b></p> <input type="text" name="Title" required><br>
<p><b>Body : </b></p> 

<textarea name="Body" required>

</textarea>
<br>
<input type="submit" value="Add News">
</form>
#{if flash.error}
    <p style="color:#c00">
        ${flash.error}
    </p>
#{/if}
 
</body>
</html>